<template>
  <div>
    <el-button type="primary">主色按钮</el-button>
    <el-button type="danger" @click="handleClick">删除按钮</el-button>
  </div>
</template>


<script>
  export default {
    name: 'App',
    methods: {
      handleClick () {
        this.$confirm('确定删除吗?', '提示', {
          // confirmButtonText: '确定',
          // cancelButtonText: '取消',
          type: 'warning'
        }).then(() => { // 确定的回调
          this.$message({
            type: 'success',
            message: '删除成功!'
          });
        }).catch(() => { // 取消的回调
          this.$message({
            type: 'info',
            message: '已取消删除'
          });          
        });
      }
    }
  }
</script>


<style scoped>
  
</style>